package com.ruitu.mall_98_2.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;
import com.ruitu.router_module.bean.order.OrderDetail;

import rx.Observable;

public interface OrderDetailsContract {
    interface Model extends BaseModel {
        Observable<BaseResult<OrderDetail>> orderDetailsInfo(String orderId);

        Observable<BaseResult> qrsh(String odId);

        Observable<BaseResult> deleteOrder(String orderId);

        Observable<BaseResult<String>> invitationCollage(String goodsId);

    }

    interface View extends BaseView {
        void setData(OrderDetail orderDetail);

        void setSuc();

        void setInvitationSuc(String data);

        void setFail();
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void orderDetailsInfo(String orderId);

        public abstract void qrsh(String odId);

        public abstract void deleteOrder(String orderId);

        public abstract void invitationCollage(String goodsId);

    }
}
